home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / gfx / show / agmsfilm2.lha / AGMSFilm.doc < prev    next >
Text File  |  1993-01-05  |  6KB  |  110 lines

  1.                       AGMS*Film --- The Story
  2.  
  3. AGMSMakeFilm, AGMSPlayFilm and AGMSBreakFilm are utilities for creating,
  4. showing and destroying cartoons, including a stereo sound track.
  5.  
  6. What's the difference between these utilities and other programs (like
  7. RTAP by Sebastiano Vigna and THUT's TASS) that play big ANIM5 cartoons
  8. from hard disk?  Sound and Speed!
  9.  
  10. I've been working on a ray traced cartoon (about 900 frames at 15 fps,
  11. natural motion from my puppeteering software [Handyman] and rendering by
  12. DKBTrace).  After compiling the separate frames into an ANIM5 cartoon
  13. with MakeAnim (a nice utility by an anonymous person - thanks!), RTAP
  14. almost played my cartoon correctly.  It had to pause once in a while to
  15. suck data off the disk (even though it was reading a bit while playing
  16. and had megabytes of buffers).  Annoying.  Even on an A3000 with a fast
  17. hard drive (2.0 megabytes / sec measured performance including file
  18. system overhead, 2.3 without file system).  I wasn't able to test TASS's
  19. performance.
  20.  
  21. Part of the problem is that the cartoon didn't compress at all well using
  22. ANIM5.  ANIM5 works by storing the full first frame and then only the pixels
  23. that change from one frame to the next.  It also does vertical run length
  24. compression on top of that.  Anyways, in the ANIM5 version of my cartoon
  25. each compressed frame took up about 80% of the original image's size.  Why?
  26. Lots of changes from one frame to the next due to camera movement, complex
  27. textures and lighting changes (moving sun behind moving clouds, rippling
  28. water, etc).
  29.  
  30. Ok, so it doesn't compress too well.  That just means it takes up more
  31. space on the hard drive, right? Nope, the other problem is that it takes
  32. a lot of CPU time to decompress and draw each frame.  ANIM5 works so
  33. well for ordinary cartoons because only a small part of the image
  34. changes from frame to frame: only the moving bits are decompressed and
  35. drawn.  Usually the moving parts are your animated character while the
  36. rest of the image is a static background.  With my cartoon, everything
  37. is moving.  You might as well redraw the whole screen since it's all
  38. changing anyways.
  39.  
  40. That's what AGMSPlayFilm does.  It loads uncompressed audio and video
  41. frames from the hard disk directly into the screen memory.  No CPU time
  42. wasted doing useless decompression.  It also has the advantage of being
  43. able to play the film backwards.  The uncompressed format also means
  44. that you could theoretically edit the film's contents in place -
  45. replacing a single frame in the middle wouldn't mean having to redo all
  46. the following frames like ANIM5 requires.
  47.  
  48. However, it does require a fast hard disk drive or a small picture.  A
  49. small price to pay for cartoons that let you do camera movement and
  50. lighting changes! I put up with a 128x75 HAM image on my A2000 (15
  51. frames per second, 20 kHz stereo sound, old GVP Series I non-DMA disk
  52. controller [slow: 200K/s]).  On my friend's A3000 we can do 352x232
  53. overscanned HAM (15fps, 20kHz, 3000's fast DMA controller [2.0M/s]) with
  54. CPU time and disk bandwidth to spare.  People with A2000's and 2091
  55. controllers can expect at least 500K/s, enough for 10 frames per second
  56. 320x200 HAM plus sound.  Of course, if you have a slow disk drive then
  57. even the best disk controller won't help.  By the way, those disk speed
  58. tests are off for big files - AmigaDOS has extra overhead for files that
  59. are very long (but see that new 2.0 AddBuffers command...).
  60.  
  61. The file format is taken from the IFF standard.  Unfortunately, it is a
  62. part of the standard that few people use because of its complexity.
  63. Basically, the film is a LIST containing the frames (cells) of the
  64. animation.  The LIST specifies shared properties for all the contained
  65. objects (namely, the screen size and sound speed).  Each frame within
  66. the LIST is implemented as a CAT object (concatenation).  The CAT holds
  67. a FORM ILBM for the image part of the frame and a FORM 8SVX for the
  68. sound track portion that goes with the image.  So, programs like
  69. AGMSPlaySound that can handle fancy IFF structures work but most others
  70. will guru because they recognize it as IFF and then use buggy (probably
  71. untested) LIST and CAT reading code.  One final note, I'm using a
  72. special type of LIST that requires that all the frames (CAT chunks) are
  73. all exactly the same size and have the audio and video parts in the same
  74. relative positions.
  75.  
  76. Well, it works.  I can now put my cartoon on video tape without having
  77. to buy / rent an expensive single frame recording device.
  78.  
  79. - Alex
  80.  
  81.  
  82. References:
  83.  
  84. People have also mentioned something from THUT called TASS that was on
  85. an AMIGA Plus Disk.  While it isn't useful to me (I'm not endorsing it),
  86. it can be useful for people dealing with ANIM5 cartoons, perhaps wanting
  87. to convert them to IFF files for use with AGMSMakeFilm.  TASS seems to
  88. be a bunch of utilities useful for playing regular ANIM5 files from
  89. disk, converting between ANIM5 and individual IFF pictures, and doing
  90. other things.  THUT also came out with a PD utility (before TASS?)
  91. called ATI that just converted ANIM5 to IFF (a pain to use - have to
  92. type in file name for each frame).  Anyways, here's their address from
  93. the TASS docs in case you want their stuff:
  94.  
  95.   THUT Inc.
  96.   34 King St. E.
  97.   Suite #802
  98.   Toronto, Ontario, Canada
  99.   M5C 1E7
  100.  
  101.        (705) 737-5998
  102.   BBS: (705) 737-5017
  103.   FAX: (416)-366-5966
  104.  
  105.  
  106. Another way of converting ANIM5 cartoons to individual pictures is to use
  107. Deluxe Paint IV from Electronic Arts.  It has a new feature which lets you
  108. save a series of pictures by specifying a count in the save a picture dialog
  109. box.
  110.